package com.giscloud.commons.enums;

/**
 * @Author:giscloud
 * @Description:
 * @Date: 9:16 2019/9/12
 * @Modified By:
 */
public enum ResultEnum {
    UNKNOW_ERROR(500, "未知异常，请联系管理员"),
    NO_HANDLER_FOUND_ERROR(404, "接口不存在"),
    PARAM_NOT_NULL(-3, "缺少必须的参数"),
    SUCCESS(0, "success"),
    FAIL(-1, "fail");
    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }


    public String getMsg() {
        return msg;
    }
}
